package com.example.eureka_client.mapper;

import com.example.eureka_client.entity.AttentionUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 用户关注其他用户关联表 Mapper 接口
 * </p>
 *
 * @author plj
 * @since 2022-04-17
 */
public interface AttentionUserMapper extends BaseMapper<AttentionUser> {
    List<AttentionUser> getAllByUserId(String userId);
    List<AttentionUser> getAllByToId(String toId);
    boolean delAttention(String userId, String toId);
}
